package com.example.zzz.mapper;

import com.example.zzz.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
//@Mapper
public interface UserMapper {

    //新增
    public  Boolean add(User user);
    //删除
    public  Boolean del(int id);
    //修改
    public  Boolean edit(User user);
    //查询所有
    public List<User> findAll();
    //查询单条
    public  User findOne(int id);
}
